package com.qf.utils;
/*
@author fu
@date 2022/3/1821:31
自定义这个类继承自mybatis的连接池数据源工厂类
*/

import com.alibaba.druid.pool.DruidDataSource;
import org.apache.ibatis.datasource.pooled.PooledDataSourceFactory;

public class MyDruidDataSourceFactory extends PooledDataSourceFactory {

    //构造方法
    public void MyDruidDataSourceFactory(){

        //创造德鲁伊的数据源对象
        this.dataSource = new DruidDataSource();
    }
}
